/*
 * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
 * Licensed under the 【火山方舟】原型应用软件自用许可协议
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at 
 *     https://www.volcengine.com/docs/82379/1433703
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import { Template } from '../../PuzzleBoard';

export const previewSquare = {
  width: 675,
  height: 450,
  pieces: [
    {
      path: 'M147.615 158.671L8 150.311V14C8 10.6863 10.6863 8 14 8H148.396L147.615 158.671Z',
    },
    {
      path: 'M311.641 168.492L155.613 159.149L156.396 8H295.717L311.641 168.492Z',
    },
    {
      path: 'M474.469 178.243L319.265 168.949L319.72 168.904L303.754 8H487.919L474.469 178.243Z',
    },
    {
      path: 'M661 8C664.314 8.00001 667 10.6863 667 14V189.772L482.457 178.721L495.944 8H661Z',
    },
    {
      path: 'M147.573 166.684L146.932 290.629L8 303.417V158.326L147.573 166.684Z',
    },
    {
      path: 'M146.147 441.998H14C10.6863 441.998 8 439.312 8 435.998V311.45L146.89 298.666L146.147 441.998Z',
    },
    {
      path: 'M403.634 182.017L395.403 442H154.148L155.572 167.163L403.634 182.017Z',
    },

    {
      path: 'M666.998 197.785V435.997C666.998 439.311 664.312 441.997 660.998 441.997H403.406L411.621 182.494L666.998 197.785Z',
    },
  ],
};

const templates: Record<number, Template[]> = {
  1: [
    {
      width: 450,
      height: 450,
      pieces: [
        {
          path: 'M8 14C8 10.6863 10.6863 8 14 8H436C439.314 8 442 10.6863 442 14V436C442 439.314 439.314 442 436 442H14C10.6863 442 8 439.314 8 436V14Z',
        },
      ],
    },
  ],
  2: [
    {
      width: 258,
      height: 450,
      pieces: [
        {
          path: 'M244 8C247.314 8 250 10.6863 250 14V207.275L8 236.989V14C8 10.6863 10.6863 8 14 8H244Z',
        },
        {
          path: 'M250 436C250 439.314 247.314 442 244 442H14C10.6863 442 8 439.314 8 436V245.05L250 215.336V436Z',
        },
      ],
    },
    {
      width: 800,
      height: 343,
      pieces: [
        {
          path: 'M352.131 335H14C10.6863 335 8 332.314 8 329V14C8 10.6863 10.6863 8 14 8H440.771L352.131 335Z',
        },
        {
          path: 'M786 8C789.314 8 792 10.6863 792 14V329C792 332.314 789.314 335 786 335H360.418L449.06 8H786Z',
        },
      ],
    },
  ],
  3: [
    {
      width: 657,
      height: 450,
      pieces: [
        {
          path: 'M410.217 242.593L409.999 242.62L410.101 243.448L383.04 442H14C10.6863 442 8 439.314 8 436V14C8 10.6863 10.6863 8 14 8H442.19L410.217 242.593Z',
        },
        {
          path: 'M643.998 8C647.312 8 649.998 10.6863 649.998 14V213.151L418.43 241.584L450.266 8H643.998Z',
        },
        {
          path: 'M649.995 436C649.995 439.314 647.309 442 643.995 442H391.113L417.311 249.781L649.995 221.211V436Z',
        },
      ],
    },
    {
      width: 324,
      height: 450,
      pieces: [
        {
          path: 'M310 8C313.314 8 316 10.6863 316 14V263.679L8 301.497V14C8 10.6863 10.6863 8 14 8H310Z',
        },
        {
          path: 'M151.624 442H14C10.6863 442 8 439.314 8 436V309.557L175.717 288.964L151.624 442Z',
        },
        {
          path: 'M316 436C316 439.314 313.314 442 310 442H159.723L183.976 287.95L316 271.739V436Z',
        },
      ],
    },
  ],
  4: [
    {
      width: 450,
      height: 450,
      pieces: [
        {
          path: 'M240.325 237.992L8 260.595V14C8 10.6863 10.6863 8 14 8H262.722L240.325 237.992Z',
        },
        {
          path: 'M436.001 8C439.315 8 442.001 10.6863 442.001 14V188.983L251.332 207.532L270.762 8H436.001Z',
        },
        {
          path: 'M220.461 442H14C10.6863 442 8 439.314 8 436V268.633L239.535 246.107L220.461 442Z',
        },
        {
          path: 'M442 436C442 439.314 439.314 442 436 442H228.496L250.537 215.647L442 197.021V436Z',
        },
      ],
    },
    {
      width: 431,
      height: 450,
      pieces: [
        {
          path: 'M417 8C420.314 8 423 10.6863 423 14V298.891L8 344.08V14C8 10.6863 10.6863 8 14 8H417Z',
        },
        {
          path: 'M134.497 442H14C10.6863 442 8 439.314 8 436V352.128L151.099 336.546L134.497 442Z',
        },
        {
          path: 'M297.199 442H142.594L159.337 335.648L286.826 321.767L297.199 442Z',
        },
        {
          path: 'M423 436C423 439.314 420.314 442 417 442H305.229L294.781 320.9L423 306.938V436Z',
        },
      ],
    },
  ],
  5: [
    {
      width: 626,
      height: 450,
      pieces: [
        {
          path: 'M190.028 200.892L8 220.713V14C8 10.6863 10.6863 8 14 8H216.436L190.028 200.892Z',
        },
        {
          path: 'M419.53 175.901L198.227 199.999L224.513 8H405.047L419.53 175.901Z',
        },
        {
          path: 'M612.025 8C615.339 8 618.025 10.6863 618.025 14V154.29L427.487 175.037L413.078 8H612.025Z',
        },
        {
          path: 'M326.249 442H14C10.6863 442 8 439.314 8 436V228.761L305.062 196.413L326.249 442Z',
        },
        {
          path: 'M617.979 436C617.979 439.314 615.292 442 611.979 442H334.277L313.016 195.545L617.979 162.337V436Z',
        },
      ],
    },
    {
      width: 449,
      height: 450,
      pieces: [
        {
          path: 'M252.645 188.384L8 237.722V14C8 10.6863 10.6863 8 14 8H247.318L252.645 188.384Z',
        },
        {
          path: 'M434.998 8C438.312 8 440.998 10.6863 440.998 14V150.399L260.6 186.78L255.32 8H434.998Z',
        },
        {
          path: 'M260.135 442H14C10.6863 442 8 439.314 8 436V245.884L252.884 196.498L260.135 442Z',
        },
        {
          path: 'M441 303.552H264.049L260.84 194.893L441 158.561V303.552Z',
        },
        {
          path: 'M440.998 311.552V436C440.998 439.314 438.312 442 434.998 442H268.142L264.289 311.552H440.998Z',
        },
      ],
    },
  ],
  6: [
    {
      width: 474,
      height: 450,
      pieces: [
        {
          path: 'M177.588 141.063L8 161.887V14C8 10.6863 10.6863 8 14 8H169.972L177.588 141.063Z',
        },
        {
          path: 'M185.997 287.974L8 309.829V169.945L178.046 149.066L185.997 287.974Z',
        },
        {
          path: 'M460 8C463.314 8 466 10.6863 466 14V253.597L193.954 286.999L177.984 8H460Z',
        },
        {
          path: 'M116.716 441.992H14C10.6863 441.992 8 439.306 8 435.992V317.892L146.714 300.859L116.716 441.992Z',
        },
        {
          path: 'M308.323 442H124.891L155.109 299.828L303.084 281.659L308.323 442Z',
        },
        {
          path: 'M466.001 436C466.001 439.314 463.315 442 460.001 442H316.329L311.059 280.681L466.001 261.656V436Z',
        },
      ],
    },
    {
      width: 667,
      height: 450,
      pieces: [
        {
          path: 'M251 205.407L8 227.773V14C8 10.6863 10.6863 8 14 8H251V205.407Z',
        },
        {
          path: 'M251 442H14C10.6863 442 8 439.314 8 436V235.807L251 213.441V442Z',
        },
        {
          path: 'M386.935 153.027L259 164.803V8H409.302L386.935 153.027Z',
        },
        {
          path: 'M541.812 138.771L395.145 152.271L417.396 8H524.334L541.812 138.771Z',
        },
        {
          path: 'M653.002 8C656.316 8.00001 659.002 10.6863 659.002 14V127.986L549.786 138.038L532.406 8H653.002Z',
        },
        {
          path: 'M659 436C659 439.314 656.314 442 653 442H259V172.837L659 136.021V436Z',
        },
      ],
    },
  ],
  7: [
    {
      width: 414,
      height: 450,
      pieces: [
        {
          path: 'M209.058 148.05L8 169.942V14C8 10.6863 10.6863 8 14 8H196.976L209.058 148.05Z',
        },
        {
          path: 'M400 8C403.314 8 406 10.6863 406 14V126.604L217.01 147.184L205.004 8H400Z',
        },
        {
          path: 'M210.693 322.009L8 344.08V177.99L196.498 157.465L210.693 322.009Z',
        },
        {
          path: 'M406.002 300.741L218.647 321.142L204.453 156.599L406.002 134.651V300.741Z',
        },
        {
          path: 'M134.497 442H14C10.6863 442 8 439.314 8 436V352.128L151.099 336.546L134.497 442Z',
        },
        {
          path: 'M297.199 442H142.594L159.337 335.648L286.826 321.767L297.199 442Z',
        },
        {
          path: 'M406 435.999C406 439.313 403.314 441.999 400 441.999H305.228L294.781 320.9L406 308.789V435.999Z',
        },
      ],
    },
    {
      width: 324,
      height: 450,
      pieces: [
        {
          path: 'M120.575 103.335L8 91.8301V14C8 10.6863 10.6863 8 14 8H125.424L120.575 103.335Z',
        },
        {
          path: 'M120.168 111.335L116.44 184.638L8 197.952V99.8721L120.168 111.335Z',
        },
        {
          path: 'M310.001 8C313.315 8 316.001 10.6863 316.001 14V160.135L124.504 183.647L133.436 8H310.001Z',
        },
        {
          path: 'M163.034 320.215L8 304.37V206.012L152.16 188.312L163.034 320.215Z',
        },
        {
          path: 'M316 293.758L170.201 309.801L160.105 187.336L316 168.194V293.758Z',
        },
        {
          path: 'M163.703 328.324L173.075 442H14C10.6863 442 8 439.314 8 436V312.412L163.703 328.324Z',
        },
        {
          path: 'M316 435.995C316 439.309 313.314 441.995 310 441.995H181.099L170.859 317.785L316 301.814V435.995Z',
        },
      ],
    },
  ],
  8: [
    {
      width: 543,
      height: 450,
      pieces: [
        {
          path: 'M171.534 141.509L8 159.316V14C8 10.6863 10.6863 8 14 8H187.41L171.534 141.509Z',
        },
        {
          path: 'M154.797 282.263L8 298.247V167.363L170.564 149.662L154.797 282.263Z',
        },
        {
          path: 'M135.804 442H14C10.6863 442 8 439.314 8 436V306.294L153.827 290.415L135.804 442Z',
        },
        {
          path: 'M356.288 222.672L172.672 199.697L195.467 8H379.614L356.288 222.672Z',
        },
        {
          path: 'M355.424 230.627L332.458 442H143.859L171.727 207.643L355.424 230.627Z',
        },
        {
          path: 'M529.001 8C532.315 8 535.001 10.6863 535.001 14V156.396L373.73 136.217L387.662 8H529.001Z',
        },
        {
          path: 'M534.998 164.458L534.997 308.522L357.422 286.304L372.865 144.172L534.998 164.458Z',
        },

        {
          path: 'M535.001 316.584V436C535.001 439.314 532.315 442 529.001 442H340.508L356.56 294.258L535.001 316.584Z',
        },
      ],
    },
    {
      width: 675,
      height: 450,
      pieces: [
        {
          path: 'M147.615 158.671L8 150.311V14C8 10.6863 10.6863 8 14 8H148.396L147.615 158.671Z',
        },
        {
          path: 'M311.641 168.492L155.613 159.149L156.396 8H295.717L311.641 168.492Z',
        },
        {
          path: 'M474.469 178.243L319.265 168.949L319.72 168.904L303.754 8H487.919L474.469 178.243Z',
        },
        {
          path: 'M661 8C664.314 8.00001 667 10.6863 667 14V189.772L482.457 178.721L495.944 8H661Z',
        },
        {
          path: 'M147.573 166.684L146.932 290.629L8 303.417V158.326L147.573 166.684Z',
        },
        {
          path: 'M146.147 441.998H14C10.6863 441.998 8 439.312 8 435.998V311.45L146.89 298.666L146.147 441.998Z',
        },
        {
          path: 'M403.634 182.017L395.403 442H154.148L155.572 167.163L403.634 182.017Z',
        },

        {
          path: 'M666.998 197.785V435.997C666.998 439.311 664.312 441.997 660.998 441.997H403.406L411.621 182.494L666.998 197.785Z',
        },
      ],
    },
  ],
  9: [
    {
      width: 626,
      height: 450,
      pieces: [
        {
          path: 'M196.032 138.834L8 129.728V14C8 10.6863 10.6863 8 14 8H186.712L196.032 138.834Z',
        },
        {
          path: 'M417.317 149.551L204.078 139.224L194.73 8H427.458L417.317 149.551Z',
        },
        {
          path: 'M612.002 8C615.316 8 618.002 10.6863 618.002 14V159.271L425.312 149.938L435.479 8H612.002Z',
        },
        {
          path: 'M196.604 146.871L207.69 302.486L8 311.763V137.737L196.604 146.871Z',
        },
        {
          path: 'M416.745 157.532L407.024 293.227L215.684 302.114L204.652 147.261L416.745 157.532Z',
        },
        {
          path: 'M618 167.28V283.429L415.07 292.854L424.736 157.921L618 167.28Z',
        },
        {
          path: 'M217.63 441.99H14C10.6863 441.99 8 439.304 8 435.99V319.771L208.26 310.469L217.63 441.99Z',
        },
        {
          path: 'M396.368 442H225.649L216.254 310.098L406.449 301.263L396.368 442Z',
        },
        { path: 'M618 436C618 439.314 615.314 442 612 442H404.387L414.494 300.89L618 291.438V436Z' },
      ],
    },
    {
      width: 258,
      height: 450,
      pieces: [
        {
          path: 'M92 91.2461L8 97.1836V14C8 10.6863 10.6863 8 14 8H92V91.2461Z',
        },
        {
          path: 'M173 85.5205L100 90.6807V8H173V85.5205Z',
        },
        {
          path: 'M244 8C247.314 8 250 10.6863 250 14V80.0771L181 84.9551V8H244Z',
        },
        {
          path: 'M129 209.038L8 217.011V105.204L129 96.6514V209.038Z',
        },
        {
          path: 'M250 201.065L137 208.511V96.085L250 88.0977V201.065Z',
        },
        {
          path: 'M142.441 332.732L8 329.464V225.028L115.95 217.916L142.441 332.732Z',
        },
        {
          path: 'M250.001 335.347L150.699 332.932L124.039 217.383L250.001 209.082V335.347Z',
        },
        {
          path: 'M122.247 340.244L135.229 442H14C10.6863 442 8 439.314 8 436V337.466L122.247 340.244Z',
        },
        {
          path: 'M250.001 343.352V436C250.001 439.314 247.315 442 244.001 442H143.297L130.34 340.441L250.001 343.352Z',
        },
      ],
    },
  ],
};

export default templates;
